<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>办公自动化管理系统</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link id="skin" href="${pageContext.request.contextPath}/easyui1.4.4/themes/default/easyui.css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/easyui1.4.4/themes/icon.css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/global.css" rel="stylesheet" />
<script	src="${pageContext.request.contextPath}/easyui1.4.4/jquery.min.js"></script>
<script	src="${pageContext.request.contextPath}/easyui1.4.4/jquery.cookie.js"></script>
<script	src="${pageContext.request.contextPath}/easyui1.4.4/jquery.easyui.min.js"></script>
<script	src="${pageContext.request.contextPath}/easyui1.4.4/locale/easyui-lang-zh_CN.js"></script>
<script	src="${pageContext.request.contextPath}/js/index.js"></script>
<style type="text/css">

    #total {
	width: 100%;
	height: 100%;
	}
    .tree-hit {
    	display: none;
    }
    .tree-title{
    	font: normal normal 16px "微软雅黑";
    }
    .tree-node{
    	padding:5px 0 7px 0;
    }
    .tree-icon{
    	margin:2px;
    }
    .tree-node-hover{
    	transform: translateX(5px);
    }
#login_table {
	margin: 15px;
	width: 100%;
	height: 180px;
	text-align: center;
}

#login_table td {
	padding: 2px;
	height: 25px;
	font-size: 12px;
}

#checkCode {
	vertical-align: middle;
	cursor: pointer;
}


</style>

</head>

<body>
<input id="loginUserName"  type="hidden" value="${LoginUser.uname}"/>
<input id="loginUserId"  type="hidden" value="${LoginUser.id}"/>
<input id="loginRoleId"  type="hidden" value="${LoginUser.role.id}"/>
<div class="easyui-window" title="欢迎登录办公自动化管理系统" resizable="false"
		draggable="false" id="loginWin" iconcls="icon-man"
		minimizable="false" maximizable="false" closable="false" closed="true"
		collapsible="false" modal="true"
		style="overflow: hidden; padding: 10px; width: 380px; height: 260px;">
		<form id="loginFrm" method="post">
			<table id="login_table">
				<tr>
					<td>用户名：</td>
					<td align="left"><input type="text" autocomplete="off"
						class="easyui-textbox" tabindex="0" id="userName" name="userName"
						style="width:180px;height:28px" required="true"
						iconcls="icon-man" missingmessage="请输入用户名" /></td>
				</tr>
				<tr>
					<td>密码：</td>
					<td align="left"><input type="password" class="easyui-textbox"
						tabindex="1" id="password" name="password"
						style="width:180px;height:28px" required="true"
						iconcls="icon-lock" missingmessage="请输入登录密码！" />
						</td>
				</tr>

				<tr>
					<td colspan="2" align="center">
					<a href="javascript:void(0);" class="easyui-linkbutton"
				data-options="iconCls:'icon-ok'" id="btnLogin" tabindex="3">登录</a>
			<a href="javascript:void(0);" class="easyui-linkbutton"
				data-options="iconCls:'icon-man'" id="btnReg" tabindex="4">注册</a>
					</td>
				</tr>
			</table>
		</form>
		
	</div>
	
	<div id="total">
		<div id="cc" class="easyui-layout" data-options="fit:true">
			<div data-options="region:'north',title:'',border:false,split:false"
				style="height:80px;padding:10px 10px 0px 10px">
				<div style="float:left"></div>
				<div style="float:left;left:50%;position: absolute;"><div class="txt" style="font-family:微软雅黑;font-size:33px;font-weight:bold;position: relative;left:-140px;">办公自动化管理系统</div></div>
				<div id="userInfo" style="font-size:12px;float:right;margin: 40px 2px 2px 0px;display: none"><span>当前用户：${LoginUserName}（${UserRole}）&nbsp;&nbsp; </span><a href="${pageContext.request.contextPath}/user_logout.do">退出系统</a></div>
			</div>
			<div data-options="region:'south',title:'',border:false,split:false"
				style="height:35px;">
			<div style="text-align:right;padding:6px;">
				©  大个出品，必属精品！
			</div>	
			</div>
			<div data-options="region:'west',title:'办公自动化管理系统',split:true"
				style="width:225px;padding:10px">
				<ul id="mainmenu" class="easyui-tree">
					<li>   
        				<span>加载中……</span>   
    				</li>  
				</ul>
			</div>
			<div data-options="region:'center',title:'',border:true">
				<iframe name="centerframe" id="centerframe" src="${pageContext.request.contextPath}/welcome.html" style="width:100%;height:100%;display: none" noresize="noresize" frameborder="0" border="0"></iframe>
			</div>
		</div>
	</div>
	
	<div style="display:none">
	<div id="regdlg" class="easyui-dialog"  style="width: 660px; height: 245px"
	data-options="resizable:true,modal:true,maximizable:true,closed:true,openAnimation:'fade',closeAnimation:'fade'" >
       <form id="fm" method="post"> 
       <input type="hidden" value="3" name="roleId"/>
       <input type="hidden" value="2" name="status"/>
       <table class="cssform" style="border-collapse: collapse;width:100%;margin-bottom: 2px">
			<tr>
			   <th style="width:70px"><label>用户名</label> </th>
		       <td><input name="uname" id="dlguname"  class="easyui-textbox" data-options="width:170,required:true"/> </td>
		       <th style="width:53px"><label>姓名</label> </th>
		       <td><input  name="name"  class="easyui-textbox"  data-options="width:120"/> </td>
		       <th style="width:53px"><label>性别</label> </th>
		       <td >
		       			<select id="dlgsex" name="sex" class="easyui-combobox" data-options="editable:false,panelHeight:'auto',width:75">   
								    <option value="保密" selected="selected">保密</option>   
								    <option value="男">男</option>   
								    <option value="女">女</option>   
						</select>
		       </td>
		       
			</tr>
	        <tr>
	           <th style="width:53px"><label>手机</label> </th>
		       <td><input  name="mobile"  class="easyui-textbox"  data-options="width:170"/> </td>
		       <th style="width:70px"><label>生日</label> </th>
		       <td ><input  name="birthday" id="birthday" class="easyui-datebox" data-options="width:120,editable:false"/> </td>
			   <th style="width:70px"><label>固定电话</label> </th>
		       <td><input  name="tel"  class="easyui-textbox" data-options="width:120"/> </td>
			</tr>
	        <tr>
		       
			   <th style="width:53px"><label>QQ</label> </th>
		       <td colspan="2"><input  name="qq"  class="easyui-textbox" data-options="width:120"/> </td>
		       <th style="width:53px"><label>微信</label> </th>
		       <td colspan="2"><input  name="weChat"  class="easyui-textbox"  data-options="width:120"/> </td>
			</tr>
	        <tr>
			   <th style="width:53px"><label>邮箱</label> </th>
		       <td><input  name="email"  class="easyui-textbox" data-options="width:170"/> </td>
		       <th style="width:53px"><label>省</label> </th>
		       <td><input id="province"  name="provinceId"  class="easyui-combobox" data-options="width:120,editable:false,panelHeight:'auto'"/> </td>
		       <th style="width:53px"><label>市</label> </th>
		       <td><input id="city" name="cityId"  class="easyui-combobox" data-options="width:120,editable:false,panelHeight:'auto'"/> </td>
			</tr>
			<tr >
				<th style="width:70px"><label>设置密码</label> </th>
				<td colspan="2"><input id="pwd"  name="pwd" type="password"  class="easyui-textbox"  data-options="width:170,required:true"/> </td>
				<th style="width:70px"><label>重复密码</label> </th>
				<td colspan="2"><input id="repwd" type="password"  class="easyui-textbox"  data-options="width:170,required:true"/> </td>
			</tr>
			<tr>
				<th style="width:70px"><label>详细地址</label> </th>
				<td colspan="5"><input  name="address"  class="easyui-textbox"  data-options="width:570"/> </td>
			</tr>
		</table>
       </form>
    </div>
	</div>
<div style="display:none">
	<div id="tb"></div>
	<div class="easyui-datagrid" data-options="toolbar:'#tb'"></div>
</div>
</body>
</html>
